package com.mynewspaper.components;

import com.mynewspaper.app.Session;
import com.webobjects.appserver.WOComponent;
import com.webobjects.appserver.WOContext;

public class UserInfoComponent extends WOComponent {
	private static final long serialVersionUID = 1337066292462203239L;

	public String textLogin;

	public UserInfoComponent(WOContext context) {
        super(context);
    }
	
	public String getUserName() {
		return ((Session)session()).getUser().getUserName();
	}
}